<!--
 * @Author: 花香蝶自来 1026583651@qq.com
 * @Date: 2024-07-12 09:59:38
 * @LastEditors: 花香蝶自来 1026583651@qq.com
 * @LastEditTime: 2024-07-14 21:19:36
 * @FilePath: /driver/pagesall/order/components/orderitem.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
	<view class="" style="height: 100%;">
		<getdatascrollview ref="getdatascrollview" :api="api" :seardata="querydata" :onPullingfalge="false">
			<template v-slot="{ list }">
				<view>
					<listcardorder v-for="item in list" :item="item"></listcardorder>
				</view>
			</template>
		</getdatascrollview>
	</view>
</template>

<script>
	import {
		routePlanningInfoRecordPage
	} from "@/api/routePlanningInfo.js"
	export default {
		props: {
			querydata: {
				type: Object,
				default: () => {
					return {}
				}
			},

		},
		data() {
			return {

			}
		},
		methods: {
			init() {
				this.$refs.getdatascrollview.onRefresh()
				console.log(123456);
			},
			async api(reqdata) {
				let data = await routePlanningInfoRecordPage({
					...reqdata,
					driverId: this.$store.state.user.user.sjdata.id
				})
				// console.log(reqdata);
				// setTimeout(() => {
				// 	console.log(this.seardata);
				// }, 1000)
				return data
			}
		}
	}
</script>

<style>

</style>